home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / john / hc_resed / ResEdit IPS™ / card_7308.txt < prev    next >
Encoding:
Text File  |  1988-07-22  |  2.1 KB  |  56 lines

  1. -- card: 7308 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2664
  5. -- name: 
  6.  
  7.  
  8. -- part 2 (button)
  9. -- low flags: 00
  10. -- high flags: A000
  11. -- rect: left=467 top=77 right=125 bottom=507
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 1002 / 1002
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: #4
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   push card
  23.   go to card id 9335
  24. end mouseUp
  25.  
  26.  
  27.  
  28. -- part 3 (button)
  29. -- low flags: 00
  30. -- high flags: 0000
  31. -- rect: left=387 top=63 right=103 bottom=429
  32. -- title width / last selected line: 0
  33. -- icon id / first selected line: 0 / 0
  34. -- text alignment: 1
  35. -- font id: 0
  36. -- text size: 12
  37. -- style flags: 0
  38. -- line height: 16
  39. -- part name: skip
  40. ----- HyperTalk script -----
  41. on mouseUp
  42.   set lockScreen to true
  43.   go next card
  44.   go next card
  45.   go next card
  46.   set lockScreen to false
  47. end mouseUp
  48.  
  49.  
  50.  
  51. -- part contents for background part 13
  52. ----- text -----
  53. (Re)Making a Menu
  54.  
  55. All right...  for this first trek into the world of ResEdit I'm going to go really slow and use a lot of pictures; after this we'll speed up a little.  Remember, now -- the stuff you are seeing here as far as opening the resource (MENU in this case), changing it's contents, saving, etc.  applies to a large portion of the rest of how ResEdit works.
  56. Click on the button #4 to the right to see another screen dump.  You sharp people out there may know that menu ID#'s (normally) start at 1, that being the Desk Accessories menu.  Since that one's sorta boring, I skipped it to go to the File menu for our little session instead.  What we see here is the first item of information for MENU #2, namely, the title that you normally see on the menu bar.  All the stuff you see at the top of the illustration, menuID, width, height, all the way to enableFlgs, I leave alone.  I think that leaving width and height at zero lets the Mac figure our automatically how to scale the menu as you make other changes, but I'm really guessing.  The thing we want to change here is the title, which currently is good 'ol File.  Asterisks denote where the information for one item ends and another item's info begins.